forum

home / developersection / forums / when to use linkedlist over arraylist?

When to use LinkedList over ArrayList?

Anonymous User 2390 04-May-2015
I've always been one to simply use:

List<String> names = new ArrayList<String>();
I use the interface as the type name for portability, so that when I ask questions such as these I can rework my code.

When should LinkedList be used over ArrayList and vice-versa?

Updated on 05-May-2015

I am a content writter !

Can you answer this question?

Answer

1 Answers

Liked By